/*
 * @Author: modefy
 * @Date: 2023-05-05 08:49:56
 * @LastEditors: ZN
 * @LastEditTime: 2023-05-10 15:34:42
 * @Description: Description
 */
import request from 'utils/request'
import axios from 'axios'

// 获取首页顶部列表(mock)
export function getHomeList() {
  return axios({
    url: '/api/homeList',
    method: 'get'
  })
}

// 获取计划列表
export function getPlanList() {
  return request({
    url: '/plan/list',
    method: 'get'
  })
}

// 新增计划列表
export function setPlan(data) {
  return request({
    url: '/plan/add',
    method: 'post',
    data
  })
}

// 删除计划清单项
export function delPlan(id) {
  return request({
    url: '/plan/delete?id=' + id,
    method: 'get'
  })
}

/**
 * @module 四象限
 * 获取四象限列表
 * @param {*} id
 * @returns
 */
export function getQuadrantList() {
  return request({
    url: '/quadrant/list',
    method: 'get'
  })
}

export function submitQuadrant(data) {
  return request({
    url: '/quadrant/update',
    method: 'post',
    data
  })
}

// 请求折线图数据
export function getLineChartDatas() {
  return axios({
    url: '/home/getLineChart',
    method: 'get',
  })
}

// 请求柱图数据
export function getBarChartData() {
  return axios({
    url: '/home/getBarChart',
    method: 'get',
  })
}

// 请求环图数据
export function getPieChartData() {
  return axios({
    url: '/home/getPieChart',
    method: 'get',
  })
}

// 请求雷达图数据
export function getRadarChartData() {
  return axios({
    url: '/home/getRadarChart',
    method: 'get',
  })
}




